package com.dower.clothing.service.impl;

import java.util.List;

import com.dower.common.core.text.Convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dower.clothing.mapper.ClFnGradeMapper;
import com.dower.clothing.domain.ClFnGrade;
import com.dower.clothing.service.IClFnGradeService;


/**
 * 年级字典Service业务层处理
 * 
 * @author dower
 * @date 2020-08-26
 */
@Service
public class ClFnGradeServiceImpl implements IClFnGradeService 
{
    @Autowired
    private ClFnGradeMapper clFnGradeMapper;

    /**
     * 查询年级字典
     * 
     * @param numId 年级字典ID
     * @return 年级字典
     */
    @Override
    public ClFnGrade selectClFnGradeById(Long numId)
    {
        return clFnGradeMapper.selectClFnGradeById(numId);
    }

    /**
     * 查询年级字典列表
     * 
     * @param clFnGrade 年级字典
     * @return 年级字典
     */
    @Override
    public List<ClFnGrade> selectClFnGradeList(ClFnGrade clFnGrade)
    {
        return clFnGradeMapper.selectClFnGradeList(clFnGrade);
    }

    /**
     * 新增年级字典
     * 
     * @param clFnGrade 年级字典
     * @return 结果
     */
    @Override
    public int insertClFnGrade(ClFnGrade clFnGrade)
    {
        return clFnGradeMapper.insertClFnGrade(clFnGrade);
    }

    /**
     * 修改年级字典
     * 
     * @param clFnGrade 年级字典
     * @return 结果
     */
    @Override
    public int updateClFnGrade(ClFnGrade clFnGrade)
    {
        return clFnGradeMapper.updateClFnGrade(clFnGrade);
    }

    /**
     * 删除年级字典对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteClFnGradeByIds(String ids)
    {
        return clFnGradeMapper.deleteClFnGradeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除年级字典信息
     * 
     * @param numId 年级字典ID
     * @return 结果
     */
    @Override
    public int deleteClFnGradeById(Long numId)
    {
        return clFnGradeMapper.deleteClFnGradeById(numId);
    }
}
